﻿using PagedList;
using SelfMadeMillionaire.Core.DTOs;
using SelfMadeMillionaire.Core.Entities;
using SelfMadeMillionaire.Core.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace SelfMadeMillionaire.Web.Infrastructure.ViewModels.MailingList
{
	public class MailingListViewModel
	{
        public string SortOrder { get; set; }
		[DisplayName("First Name")]
		[StringLength(100)]
		public string FirstName { get; set; }
		[DisplayName("Last Name")]
		[StringLength(100)]
		public string LastName { get; set; }
		[StringLength(100)]
		[RegularExpression(Constants.EMAIL_REGX, ErrorMessage = "Please enter a valid email address")]
		public string Email { get; set; }

		public SelectList ProductTypes { get; set; }

		[DisplayName("Product")]
		public ProductType? SelectedProduct { get; set; }

		public IPagedList<Subscriber> Subscribers { get; set; }
		public IPagedList<PayPalPaymentDto> Transactions { get; set; }

		public AdminSubscriberViewModel EditModel { get; set; }

        public int Page { get; set; }
        public int PageT { get; set; }
	}
}
